package com.woniuxy.security.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("user")
public interface UserService {
    //向用户服务查询用户信息
    @PostMapping("user/accountAndPassword")
    public Map<String,String> accountAndPassword(@RequestBody String account);
}
